package com.zx.test;

import java.util.Date;

import com.zx.annotation.ColumnConfig;
import com.zx.annotation.DataConfig;
import com.zx.enums.DataType;

@DataConfig(dataType = DataType.TEXT, split = " ", charset = "gbk")
public class User {
	
	@ColumnConfig(index = 0)
	private Integer id;
	
	@ColumnConfig(index = 1)
	private String name;
	
	@ColumnConfig(index = 2, datePattern = "yyyy-MM-dd")
	private Date brithday;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBrithday() {
		return brithday;
	}

	public void setBrithday(Date brithday) {
		this.brithday = brithday;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", brithday=" + brithday + "]";
	}
	
}
